package com.pzhu.gmall.manage.service.impl;

import java.util.List;

import com.pzhu.gmall.bean.PmsProductImage;
import com.pzhu.gmall.manage.mapper.PmsProductImageMapper;
import com.pzhu.gmall.service.ImgService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author 刘鹏 liupeng
 * @date 2019/11/1
 **/
@Service
public class ImgServiceImpl implements ImgService {
    @Autowired
    private PmsProductImageMapper pmsProductImageMapper;

    @Override
    public List<PmsProductImage> getImgList(String productId) {
        PmsProductImage pmsProductImage = new PmsProductImage();
        pmsProductImage.setProductId(productId);
        return pmsProductImageMapper.select(pmsProductImage);
    }
}
